//
//  SetupCollectionViewCell.m
//  Alltelevisionnews
//
//  Created by dllo on 15/11/27.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "SetupCollectionViewCell.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation SetupCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.photoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10 * WIDTH / 375, 5 * HEIGHT / 100, WIDTH - 20 * WIDTH / 375, HEIGHT / 2 + 5 * HEIGHT / 80)];
        [self.contentView addSubview:self.photoImageView];
        self.photoImageView.layer.borderWidth = 1;
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 * WIDTH / 375, HEIGHT / 2 + 10 * HEIGHT / 80, WIDTH - 20 * WIDTH / 375, HEIGHT / 2 - 15 * HEIGHT / 80)];
        [self.contentView addSubview:self.titleLabel];
        self.titleLabel.layer.borderWidth = 1;
        
    }
    
    return self;
    
}


- (void)layoutSubviews {
    
    [super layoutSubviews];
    
}


@end
